<template>
  <view class="container">
    <u-navbar
      :is-fixed="false"
      :border-bottom="false"
      :is-back="false"
      back-icon-name="arrow-leftward"
      title="支付成功"
      :background="{ background: '#fff' }"
      title-color="#000000"
    >
    </u-navbar>
    <view style="margin-bottom: 20vh;" class="" hover-class="none" hover-stop-propagation="false">
      
    </view>
		<u-toast ref="uToast" />
    <u-empty src="/static/images/支付成功.png" icon-size="80" color="green" text="支付成功，请前往我的订单查看" mode="list"></u-empty>
    <view @click="toOrder" class="toOrder">前往我的订单</view>
    <view @click="toHome" class="toOrder">返回首页</view>
  </view>
</template>

<script>
import { getGoodsById, addOrder } from "../../api/system/api";
import moment from 'moment';
export default {
  data() {
    return {
      
    };
  },
  onLoad(option) {
    
  },
  methods: {
    toOrder() {
      this.$u.route("/pages/order/orderList", {
        item: JSON.stringify({
          img: '待发货',
          type: '待服务',
          text: '待服务'
        })
      });
    },
    toHome() {
      uni.switchTab({ url: `/pages/home/home` });
    }
  },
};
</script>

<style lang="scss">
.container {
  min-height: 100vh;
  overflow: hidden;
  background: #fff3f3;
}
.toOrder {
  width: 100%;
  text-align: center;
  margin-top: 30rpx;
}
</style>
